class Test
  def get_var(binding,*vars)
    vars.each do |v|
      eval %{puts "#{v} value is "+#{v}.to_s}, binding
    end
  end
end

a=1
b=2
t=Test.new
t.get_var(binding,'a','b')